import 'dart:convert';

import 'package:hotpot/generated/json/base/json_field.dart';
import 'package:hotpot/generated/json/loyalty_card.g.dart';

@JsonSerializable()
class LoyaltyCard {

	double? points;
	@JSONField(name: "point_name")
	String? pointName;
	@JSONField(name: "points_display")
	String? pointsDisplay;
  @JSONField(name: "program_type")
  String? programType;
  @JSONField(name: "partner_id")
  List<String>? partnerId;
  @JSONField(name: "expiration_date")
  String? expirationDate;
	String? code;
	int? id;
  @JSONField(name: "currency_id")
  List<String>? currencyId;
  
  LoyaltyCard();

  factory LoyaltyCard.fromJson(Map<String, dynamic> json) => $LoyaltyCardFromJson(json);

  Map<String, dynamic> toJson() => $LoyaltyCardToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}